Setup autorelease pool, plugs occasional leak on leopard.
authorRichard Hult <richard@imendio.com>
Wed, 31 Oct 2007 10:14:53 +0000 (10:14 +0000)
committerRichard Hult <rhult@src.gnome.org>
Wed, 31 Oct 2007 10:14:53 +0000 (10:14 +0000)
2007-10-31  Richard Hult  <richard@imendio.com>

* gdk/quartz/gdkwindow-quartz.c:
(gdk_window_impl_quartz_process_updates): Setup autorelease pool,
plugs occasional leak on leopard.

svn path=/trunk/; revision=18954

ChangeLog
gdk/quartz/gdkwindow-quartz.c

index 7525675f5fe2a1c9755feec949bd4f6a997f9d97..7b1457700da673301279869c694015b6d48811d1 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2007-10-31  Richard Hult  <richard@imendio.com>
+
+       * gdk/quartz/gdkwindow-quartz.c:
+       (gdk_window_impl_quartz_process_updates): Setup autorelease pool,
+       plugs occasional leak on leopard.
+
 2007-10-31  Richard Hult  <richard@imendio.com>
 
        * gdk/quartz/GdkQuartzView.c: Fix build warning (trackingRect should be
index f5bfd2d219cbfb6ac158dc40e3a26773c46b9be3..357b8a75ed4896fe953de08d1dcba79567015e7f 100644 (file)
@@ -369,8 +369,10 @@ gdk_window_impl_quartz_process_updates (GdkPaintable *paintable,
 
   if (private->update_area)
     {
+      GDK_QUARTZ_ALLOC_POOL;
       gdk_window_quartz_process_updates_internal ((GdkWindow *) private);
       update_windows = g_slist_remove (update_windows, private);
+      GDK_QUARTZ_RELEASE_POOL;
     }
 }